﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Client.Model
{
    public class SubMenu : BindableBase
    {
        public int ID { get; set; }

        public int ParentId { get; set; }

        public string Icon { get; set; }

        /// <summary>
        /// 子菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 子菜单对应的页面
        /// </summary>
        public string Screen { get; set; }


        public MainMenu Parent { get; set; }

        private bool? _checked = false;

        public bool? Checked
        {
            get { return _checked; }
            set
            {
                _checked = value;
                RaisePropertyChanged("Checked");
            }
        }

    }
}
